package com.vancouver.knows.business.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.vancouver.knows.business.bean.UploadedUserPostDetailInfo;

/**
 * Created by Chris Li on 2016-07-20.
 */
public class UploadUserPostHandler extends ACheckableJsonParser {

    private UploadedUserPostDetailInfo uploadedUserPostDetailInfo;

    @Override
    protected void parserContent(JSONObject content) throws Exception {
        String postDetails = content.getString("post_details");
        uploadedUserPostDetailInfo = JSON.parseObject(postDetails, UploadedUserPostDetailInfo.class);
    }

    public UploadedUserPostDetailInfo getUploadedUserPostDetailInfo() {
        return uploadedUserPostDetailInfo;
    }
}
